#ifndef Fl_Window_Image2OpenGLBox_h
#define Fl_Window_Image2OpenGLBox_h

#include <FL/Fl_Slider.H>
#include <FL/gl.h>
#include <FL/Fl_Gl_Window.h>
#include "LoadBitmap.h"
#include <stdio.h>
//#include "Bitmap.h"

namespace FPTK{
//#define ZONE_ZOOM 80
//#define SIZE_MINI 200

class Fl_Window_Image2OpenGLBox : public Fl_Gl_Window
{
public:
Fl_Window_Image2OpenGLBox(int X, int Y, int W, int H,const char *l);
Fl_Window_Image2OpenGLBox(int X, int Y, int W, int H);
Fl_Window_Image2OpenGLBox(int W, int H);
~Fl_Window_Image2OpenGLBox();
void Init();
void draw();
//int LoadImageS(BYTE * pimage,int view);
int LoadImage(char *filename);
int handle(int event);
private:
int ResizeWindow();
int x_curs,y_curs;  
GLubyte *imagei;
BMPImg image_bmp;
//Bitmap image_bmp;
int W,H;
int B,drag,resiz,activ;
bool nonmodal;
int curs;
int size_mini_x,size_mini_y;
int zone_zoom_y,zone_zoom_x;
//unsigned short B;
};

}
#endif
